package com.maiji.cloud.service;

import com.maiji.cloud.entities.manager.User;
import com.maiji.cloud.entities.manager.UserRole;
import com.baomidou.mybatisplus.service.IService;
import com.maiji.cloud.request.manager.UserRoleEditReqData;
import com.maiji.cloud.response.BaseResDto;
import com.maiji.cloud.response.manager.UserResData;
import java.util.List;

public interface UserRoleService extends IService<UserRole> {

    Boolean addUserRoles(String roleId, List<String> userIds);

    List<UserResData> findAllWithRoles(List<User> userList);

    BaseResDto editUserRole(UserRoleEditReqData data);

    BaseResDto editRoleUser(String roleId, List<String> userIds, Boolean add);

}
